<template>
  <div class="container">
    <background />

    <!-- <Row class="content">
      <i-col span="6">
        <div class="box" v-show="userInfo.type === 0" @click="jump('/userManage')">
          <i class></i>
          <div class="font-main">用户管理</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/kmlManage')">
          <i class></i>
          <div class="font-main">设计输入</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/networkServerSystem')">
          <i class></i>
          <div class="font-main">网络系统图(单交接箱)</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/networkServerSystem2')">
          <i class></i>
          <div class="font-main">网络系统图(双交接箱)</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/fbt288')">
          <i class></i>
          <div class="font-main">宽带光缆分布图(288芯)</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/fbt576')">
          <i class></i>
          <div class="font-main">宽带光缆分布图(576芯)</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/contrastManage')">
          <i class></i>
          <div class="font-main">图标对比</div>
        </div>
      </i-col>
      <i-col span="6">
        <div class="box" @click="jump('/historyManage')">
          <i class></i>
          <div class="font-main">历史记录</div>
        </div>
      </i-col>
    </Row> -->
  </div>
</template>

<script>
import background from '@/view/layout/background'

export default {
  name: 'home',
  components: {
    background
  },
  data () {
    let userInfo = sessionStorage.getItem('userInfo')
    return {userInfo}
  },
  methods: {
    jump (pathc) {
      this.$router.push({
        path: pathc
      })
    }
  }
}
</script>

<style scoped>
.container {
  height: 100%;
  position: relative;
  background-color: rgba(187, 205, 250, 0.1);
  overflow: hidden;
  margin: -20px -30px -20px;
  height: calc(100% + 90px);
  padding-top: 30px;
}

.content {
  max-width: 90%;
  margin: 30px auto;
}

.box {
  width: 90%;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px 4px rgba(164, 185, 241, 0.3);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
  color: #666;
}

.font-main {
  font-size: 20px;
  font-weight: bold;
}

.font-sub {
  font-size: 14px;
}

.box:hover {
  background: #515a6e;
  color: #fff;
  cursor: pointer;
}
</style>
